package com.aaa.sbm.util;

/**
 * @FileName: ResultStatus
 * @Description: 结果状态枚举类
 * @Author: zhz
 * @CreateTime: 2025/7/1 17:22
 * @Version: 1.0.0
 */
public enum ResultStatus {

    SUCCESS(200,"操作成功"),
    FAIL(500,"操作失败"),
    NOT_FOUND(404,"未找到该资源"),
    UNAUTHORIZED(401,"未授权"),
    FORBIDDEN(403,"禁止访问"),
    ARGUMENT_ERROR(400,"参数错误"),
    ;

    private Integer statusCode;
    private String statusMessage;

//    ResultStatus() {
//    }

    ResultStatus(Integer statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }
}
